//
//  CustomUpVersionPopView.m
//  OS
//
//  Created by qyc on 2017/11/8.
//  Copyright © 2017年 LeShu. All rights reserved.
//

#import "CustomUpVersionPopView.h"

@implementation CustomUpVersionPopView
/**
 弹框提示
 
 @param ver 标题
 @param content 内容
 @return self
 */
- (id)initWithPopTitle:(NSString *)ver andContent:(NSString *)content isConstraint:(NSString *)isConstraint
{
    self = [[[NSBundle mainBundle] loadNibNamed:@"CustomUpVersionPopView" owner:nil options:nil]lastObject];
    if (self) {
        self.verLabel.text = [NSString stringWithFormat:@"%@",ver];
        self.textView.text = content;
//        if ([isConstraint integerValue]==1) {
//            self.leftHight.constant = 67.5;
//            self.noUpBtn.hidden = YES;
//        }
    }
    return self;
}

- (IBAction)sureClick:(id)sender
{
    if (_sureBlick) {
        _sureBlick();
    }
}

- (IBAction)dismissClick:(id)sender {
    [self hideView];

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
